import Vue from 'vue'
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import './style/element-variables.scss'
import router from './router'
import store from './store'
import './style/reset.scss'
import App from './App.vue'
import Config from './js/config'

Vue.config.productionTip = false
Vue.use(ElementUI)

router.beforeEach((to, from, next) => {
  if (to.meta.title) {
      document.title = `${Config.title}-${to.meta.title}`
  } else {
    document.title = `${Config.title}`
  }
  next()
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
